package com.office.service;

import com.office.bean.Emp;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("classpath:applicationContext.xml")
public class Servicetest {
    @Autowired
    EmpService empService;

    @Test
    public void testlogin(){
        Emp emp = new Emp();
        emp.setNo("bruce");
        emp.setPass("admin");
        Emp allEmp = empService.findAllEmp(emp);
        System.out.println(allEmp);
    }
}
